﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Labb_3.Model
{
    class MouseRectangle
    {
        private Vector2 _position;
        const float _size = 0.15f;
        public float Size
        {
            get { return _size; }
        }
        public Vector2 TopLeft
        {
            get { return _position; }
        }
        public float Right 
        {
            get { return _position.X + _size; }
        }
        public float Left
        {
            get { return _position.X; }
        }
        public float Top
        {
            get { return _position.Y; }
        }
        public float Bottom
        {
            get { return _position.Y + _size; }
        }

        MouseRectangle(Vector2 currentPos) 
        {
            _position = currentPos;
        }

        public static MouseRectangle GetMouseRectangle(Vector2 currentPos)
        {
            return new MouseRectangle(currentPos);
        }
    }
}
